package com.shunbo.convenient.service.impl;

import com.shunbo.convenient.dao.AreaMapper;
import com.shunbo.convenient.service.AreaService;
import com.shunbo.convenient.vo.Area;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author weizhuang
 */

@Service
@Transactional
public class AreaServiceImpl implements AreaService {

    @Resource
    private AreaMapper areaMapper;

    @Override
    public Integer save(Area obj) {
        return areaMapper.save(obj);
    }

    @Override
    public Integer update(Area obj) {
        return areaMapper.update(obj);
    }

    @Override
    public Integer delete(String obj) {
        return areaMapper.delete(obj);
    }

    @Override
    public Area findById(String obj) {
        return areaMapper.findById(obj);
    }

    @Override
    public List<Area> findAll(Area obj) {
        return areaMapper.findAll(obj);
    }
}
